package StateManagementIRPConstDefs;


/**
 * Generated from IDL struct "AdministrativeStateOldNewValue".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public final class AdministrativeStateOldNewValueHelper
{
	private static org.omg.CORBA.TypeCode _type = null;
	public static org.omg.CORBA.TypeCode type ()
	{
		if (_type == null)
		{
			_type = org.omg.CORBA.ORB.init().create_struct_tc(StateManagementIRPConstDefs.AdministrativeStateOldNewValueHelper.id(),"AdministrativeStateOldNewValue",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("new_state", StateManagementIRPConstDefs.AdministrativeStateHelper.type(), null),new org.omg.CORBA.StructMember("old_state", StateManagementIRPConstDefs.AdministrativeStateTypeOptHelper.type(), null)});
		}
		return _type;
	}

	public static void insert (final org.omg.CORBA.Any any, final StateManagementIRPConstDefs.AdministrativeStateOldNewValue s)
	{
		any.type(type());
		write( any.create_output_stream(),s);
	}

	public static StateManagementIRPConstDefs.AdministrativeStateOldNewValue extract (final org.omg.CORBA.Any any)
	{
		return read(any.create_input_stream());
	}

	public static String id()
	{
		return "IDL:StateManagementIRPConstDefs/AdministrativeStateOldNewValue:1.0";
	}
	public static StateManagementIRPConstDefs.AdministrativeStateOldNewValue read (final org.omg.CORBA.portable.InputStream in)
	{
		StateManagementIRPConstDefs.AdministrativeStateOldNewValue result = new StateManagementIRPConstDefs.AdministrativeStateOldNewValue();
		result.new_state=StateManagementIRPConstDefs.AdministrativeStateHelper.read(in);
		result.old_state=StateManagementIRPConstDefs.AdministrativeStateTypeOptHelper.read(in);
		return result;
	}
	public static void write (final org.omg.CORBA.portable.OutputStream out, final StateManagementIRPConstDefs.AdministrativeStateOldNewValue s)
	{
		StateManagementIRPConstDefs.AdministrativeStateHelper.write(out,s.new_state);
		StateManagementIRPConstDefs.AdministrativeStateTypeOptHelper.write(out,s.old_state);
	}
}
